



<div class="heading-buttons">
	<h3 class="glyphicons briefcase">
		<i></i> Banner Management List
	</h3>



</div>
<div class="separator"></div>




<div class="widget widget-2 widget-body-white finances_summary">
	<div class="widget-head">
		<h4 class="heading glyphicons picture">
			<i></i> Banner Listing
		</h4>

		<span class="pull-right"> <a
			href="<?= base_url();?>secure/advertisement/banner/add"> <span
				class="btn btn-inverse margin-right"><i
					class="icon-plus-sign icon-white"></i> Add </span>
		</a>
		</span>
	</div>
	<div class="widget-body">
		<div class="row-fluid">


			<fieldset>


				

				<div class="separator bottom">
					<div class="pull-right  margin-bottom">

						<form name="action" method="POST"
							action="<?= base_url();?>secure/advertisement/banner/banner_list">
							<select name="filter" onchange="this.form.submit()">
								<option value="">-- Select --</option>
								<option value="inactive">Inactive</option>
								<option value="active">Active</option>
								<option value="impressions">Max Impression</option>
								<option value="clicks">Max Click</option>

								<option value="expire">Expire</option>
							</select>
						</form>
					</div>
				</div>

				<table class="table table-bordered table-striped" cellspacing='0'
					width="100%">
					<!-- Table Header -->


					<thead>

						<tr>



							<th width="20%">View</th>
							<th width="10%">Clicks</th>




							<th width="10%">Impressions</th>
							<th width="10%">Priod</th>

							<th width="10%">Page</th>
							<th width="10%">Status</th>
							<th width="20%">MODIFIED</th>
					
					</thead>
					<!-- Table Header -->
					<!-- Table Body -->
					<tbody>
						<?php if($banners['info']){?>
						<?php foreach ($banners['info'] as $banners): ?>
						<tr>
							<td><a id="mediaVideo" href="#" data-toggle="modal"
								data-target="<?='#'.$banners->id; ?>"> <img height="50"
									width="80"
									src="<?= base_url() ?>assets/images/data/advertisement/<?= $banners->file;?>"
									alt="photo of " />
							</a>
							</td>

							<td><?= $banners->clicks;?>
							</td>



							<td><?= $banners->impressions;?>
							</td>

							<td><?= $banners->date_start;?>-To-<?= $banners->date_end;?>
							</td>
							<td><?php if ($banners->shows=="0") echo 'All';?> <?php if ($banners->shows=="2") echo 'Inner';?>
								<?php if ($banners->shows=="1") echo 'Index';?> <?php if($banners->status ==51){?>
								<?php if ($banners->shows=="3") echo 'Category';?>
							
							<td align="center"><i class="glyphicons no-js thumbs_up"><i></i>
							</i></td>
							<?php }else{?>
							<td align="center"><i class="glyphicons no-js thumbs_down"><i></i>
							</i></td>
							<?php }?>
							<td align="right">

								<div class="btn-group">
									<button class="btn btn-inverse dropdown-toggle"
										data-toggle="dropdown">
										Click To Modifie<span class="caret"></span>
									</button>
									<ul class="dropdown-menu">

										<!-- 
				                 <li> <?php if ($banners->status == 1) { ?>
							  	<a href="<?= base_url(); ?>secure/advertisement/banner/change_banner_status/<?= $banners->status;?>/<?= $banners->id; ?>" title="Inactive"><i class="icon-thumbs-down"></i> Inactive</a>
							   	<?php } else { ?>
							   	<a href="<?= base_url(); ?>secure/advertisement/banner/change_banner_status/<?= $banners->status;?>/<?= $banners->id; ?>" title="Active"><i class="icon-thumbs-up"></i> Active</a>
							   	 <?php } ?>
							   </li>
							    -->

										<li><a
											href="<?= base_url(); ?>secure/advertisement/banner/change_banner_status/<?= $banners->status;?>/<?= $banners->id; ?>"
											<?php if($this->config->item('mode')=='DEMO'){?>
											onclick="alert ('Sorry! Demo mode '); return false;"
											<?} else?> onclick="return confirm('Are you sure ?');"><i
												class="icon-thumbs-up"></i> Make Active</a></li>
										<li><a
											href="<?= base_url(); ?>secure/advertisement/banner/change_banner_status/<?= $banners->status;?>/<?= $banners->id; ?>"
											<?php if($this->config->item('mode')=='DEMO'){?>
											onclick="alert ('Sorry! Demo mode '); return false;"
											<?} else?> onclick="return confirm('Are you sure ?');"><i
												class="icon-thumbs-down"></i> Make Inactive</a></li>
										<li><a
											href="<?= base_url(); ?>secure/advertisement/banner/edit/<?= $banners->id;?>"><i
												class="icon-edit"></i> Edit</a></li>
										<li><input type="hidden" name="banner_id"
											value="<?= $banners->id;?>"> <input type="hidden"
											name="banner_image" value="<?= $banners->file;?>">
										</li>
										<li><a
											href="<?= base_url(); ?>secure/advertisement/banner/delete/<?= $banners->id;?>/<?= $banners->file;?>"
											<?php if($this->config->item('mode')=='DEMO'){?>
											onclick="alert ('Sorry! Demo mode '); return false;"
											<?} else?> onclick="return confirm('Are you sure ?');"><i
												class="icon-minus"></i> Delete</a></li>

									</ul>
								</div> <!-- 
								<form name="action" method="POST"
									action="<?= base_url();?>secure/advertisement/banner/action">

									<input type="hidden" name="banner_id"
										value="<?= $banners->id;?>"> <input type="hidden"
										name="banner_image" value="<?= $banners->file;?>"> <select
										name="action" onchange="this.form.submit()">

										<option value="">-- Action --</option>
										<option value="inactive">Make Inactive</option>
										<option value="active">Make Active</option>
										<option value="edit">Edit</option>

										<option value="delete">Delete</option>

									</select>
								</form>
							</td>
						</tr>
						<!-- Table Row --> <!-- <div class="span2 inline">
				<a id="mediaVideo" href="#" data-toggle="modal"
					data-target="<?='#'.$banners->id; ?>"> <img
					src="<?= base_url() ?>assets/images/data/advertisement/<?= $banners->file;?>"
					alt="photo of " />
				</a> --> <!-- Modal -->
								<div id="<?=$banners->id; ?>" class="modal hide fade"
									style="width: auto;" tabindex="-1" role="dialog">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal"
											aria-hidden="true">X</button>

									</div>

									<div class="modal-body">
										<img
											src="<?= base_url() ?>assets/images/data/advertisement/<?= $banners->file;?>"
											alt="">
									</div>

								</div> <?php endforeach; 
}else { echo "No Data found....";
}?>
					
					</tbody>
					<!-- Table Body -->
				</table>

			</fieldset>

		</div>
<div class="pagination pull-right">
		<ul>
			<li><?php  echo $this->pagination->create_links(); ?>
			</li>
		</ul>
		</div>
	</div>
</div>














